<template>
  <div>
    <div class="weekend-title">周末去哪儿</div>
    <div class="weekend-list">
        <div class="weekend-item" v-for="item of weekendList" :key="item.id">
            <div class="weekend-img-wrap">
                <img :src="item.imgUrl" alt="" class="weekend-img">
            </div>
            <div class="weekend-info">
                <p class="weekend-head">{{item.title}}</p>
                <p class="weekend-desc">{{item.desc}}</p>
            </div>
        </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'HomeWeekend',
    props: {
        weekendList: Array
    }
  }
</script>
<style lang="stylus" scoped>
@import '~styles/varibles.styl'
@import '~styles/mixins.styl'
.weekend
    &-title 
        font-size:  .32rem
        line-height: .8rem
        background: #eee
        text-indent: .2rem
    &-img
        width: 100%
        &-wrap
            overflow: hidden
            height: 0
            padding-bottom: 37.09%
    &-info
        flex: 1
        padding: .1rem
        min-width: 0
    &-head
        line-height: .54rem
        font-size: .32rem
        color: $darkTextColor
        ellipsis()
    &-desc
        line-height: .4rem
        font-size: .28rem
        color: #ccc
        ellipsis()
</style>
